package com.app.business.utils;

import com.app.business.model.Contract;

import java.util.ArrayList;
import java.util.List;

/**
 * 新旧方案不同的照顾购买名称
 * Created by ddz on 2023/10/5.
 */
public class CareBuyAreaUtils {

    public static List<String> getCareBuyAreaNameList(Contract contract) {
        List<String> careBuyAreaNameList = new ArrayList<>();
        if (contract != null && contract.getCareBuyAreaNameType() != null) {
            if (contract.getCareBuyAreaNameType() == 1) {
                careBuyAreaNameList.add("可限量照顾购买安置部分");
                careBuyAreaNameList.add("可限量增加安置部分");
                careBuyAreaNameList.add("低保户照顾购买");
                careBuyAreaNameList.add("居住困难户保障安置");
                careBuyAreaNameList.add("未建合法宅基地照顾购买");
                careBuyAreaNameList.add("房屋倒塌或只有房屋基础照顾购买 ");
                careBuyAreaNameList.add("企业照顾购买");
            } else if (contract.getCareBuyAreaNameType() == 2) {
                careBuyAreaNameList.add("照顾购买安置部分");
                careBuyAreaNameList.add("增量安置部分");
                careBuyAreaNameList.add("历史古街区店面部分增量安置");
                careBuyAreaNameList.add("低保户照顾购买");
                careBuyAreaNameList.add("居住困难户保障安置");
                careBuyAreaNameList.add("已批未建宅基地照顾购买");
                careBuyAreaNameList.add("房屋倒塌宅基地照顾购买");
                careBuyAreaNameList.add("企业照顾购买");
            }
        }
        return careBuyAreaNameList;
    }

    public static List<String> getCareBuyAreaNameList2(Contract contract) {
        List<String> careBuyAreaNameList = new ArrayList<>();
        if (contract != null && contract.getCareBuyAreaNameType() != null) {
            if (contract.getCareBuyAreaNameType() == 1) {
                careBuyAreaNameList.add("照顾购买面积");
            } else if (contract.getCareBuyAreaNameType() == 2) {
                careBuyAreaNameList.add("照顾购买面积");
            }
        } else {
            careBuyAreaNameList.add("照顾购买面积");
        }
        return careBuyAreaNameList;
    }
    public static List<String> getCareBuyAreaNameListForExcel() {
        List<String> careBuyAreaNameList = new ArrayList<>();

        careBuyAreaNameList.add("可限量照顾购买<br/>安置部分/照顾购买安置部分");
        careBuyAreaNameList.add("可限量增加安置部分/增量安置部分");
        careBuyAreaNameList.add("低保户照顾购买/历史古街区店面部分增量安置");
        careBuyAreaNameList.add("居住困难户保障安置/低保户照顾购买");
        careBuyAreaNameList.add("未建合法宅基地<br/>照顾购买/居住困难户保障安置");
        careBuyAreaNameList.add("房屋倒塌或只有房屋基础<br/>照顾购买/已批未建宅基地照顾购买 ");
        careBuyAreaNameList.add("企业照顾购买/房屋倒塌宅基地照顾购买");
        careBuyAreaNameList.add("企业照顾购买");


        return careBuyAreaNameList;
    }
}